/*
*
* StaticUI
*
* This class contains the "static" UI components
*
*/
class StaticUI {
  
  // attributes
  ControlP5 controlp5;
  PApplet parent;
  Textlabel appTitle;
  Textlabel cityLabel;
  
  // ----------------------------------------
  // constructor method
  // this method creates the UI elements
  // ----------------------------------------
  StaticUI(ControlP5 cp5, PApplet p55) {
  controlp5 = cp5;
  parent = p55; 
    
  // create title and label
  appTitle = controlp5.addTextlabel("appTitle", "METROVIEW", 10, 10);
  appTitle.setColorValue(0);
  appTitle.setWidth(75);
  //appTitle.setHeight(40);
  appTitle.setFont(3);
  cityLabel = controlp5.addTextlabel("cityLabel", "EDMONTON ELECTION 2010", 10, 25);
  cityLabel.setColorValue(0);
  
  
  }
  
  // ----------------------------------------
  // refresh
  // this method is meant to be called during every loop
  // to draw static UI components
  // ----------------------------------------
  void draw(boolean pdf) {
    
    // if pdf, draw title using processing font capabilities
    if(pdf) {
    
    // removed for print version  
//      fill(100);
//      textFont(pdfExportFontLarge);
//      text("METROVIEW", 10, 22);
//      
//      textFont(pdfExportFontSmall);
//      text("Edmonton Election 2010", 10, 32);
    
    } else {
      // draw "frame" rectangle
      noStroke();
      fill(50, 50);
      rect(6, 6, 225, 30);
    
      // refresh title and label 
      appTitle.show();
      cityLabel.show();
    } // if
    
  } //
    
} // StaticUI class
